const queryUrl = $.ecity.getServiceByName('ZHENGZHOU_CORE_SVR');


export function getOnlineMonitorMap(params) {
  return new Promise(resolve => {
    $.get(`${queryUrl}/proManagement/project/getOnlineMonitorMap`, params, res => {
      let data = res;
      if (typeof res === 'string') {
        data = JSON.parse(res);
      }
      resolve(data);
    });
  });
}
